import Vue from 'vue'

import App from './App'

import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import uView from '@/uni_modules/uview-ui'
import config from './config';
import upload from './utils/upload.js' 

Vue.use(uView)


Vue.use(plugins)


Vue.config.productionTip = false
Vue.prototype.$store = store
// 将 upload 方法挂载到 Vue 实例上
Vue.prototype.$upload = upload
Vue.prototype.$eventBus = new Vue();
App.mpType = 'app'

const app = new Vue({
	provide: {
	    baseUrl: config.baseUrl
	  },
  ...App
})

app.$mount()
